home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-11-14 | 520 b | 24 lines | [TEXT/CWIE] |
- library: ExampleLib
- module: Example
- author: Patrick C. Beard <beard@apple.com>
- description: A simple Dylan example.
-
- define library ExampleLib
- use Dylan; // use the Dylan library.
- use BeepLib; // use the Beep library.
- end library ExampleLib;
-
- // first, define a module.
-
- define module Example
- use Dylan; // all programs need this.
- use Extensions; // imports "main"
- use Beep; // imports "beep"
- end module Example;
-
- // the main entry point.
-
- define method main (argv0, #rest args)
- beep();
- end;
-